//
//  AssayDetailCell.m
//  eChart
//
//  Created by Sunny on 13-11-24.
//  Copyright (c) 2013年 Sunny. All rights reserved.
//

#import "AssayDetailCell.h"

@interface AssayDetailCell (){
    
}

@property(nonatomic,weak)IBOutlet UILabel *lblCode;
@property(nonatomic,weak)IBOutlet UILabel *lblProjectName;
@property(nonatomic,weak)IBOutlet UILabel *lblResult;
@property(nonatomic,weak)IBOutlet UILabel *lblRefer; //参考
@property(nonatomic,weak)IBOutlet UILabel *lblUnit;//单位

@end

@implementation AssayDetailCell


- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setColorRed{
    
    [self setCellColor:[UIColor colorWithRed:245/255.0 green:70/255.0 blue:91/255.0 alpha:1]];
}

-(void)setColorBlack{
    
    [self setCellColor:[UIColor  blackColor]];
}


-(void)setColorGreen{
     [self setCellColor:[UIColor colorWithRed:23/255.0 green:207/255.0 blue:192/255.0 alpha:1]];
}

-(void)setCellColor:(UIColor *)color{
    
    _lblCode.textColor = color;
    _lblProjectName.textColor = color;
    _lblResult.textColor = color;
    _lblRefer.textColor = color;
    _lblUnit.textColor = color;

    
}

@end
